﻿@{
    ViewBag.Title = "消耗计划编辑";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section head{
    <style type="text/css">
        input { width: 124px; }
        h1 {font-size: 18px;font-family: 'Microsoft YaHei';padding: 0px;padding-left: 20px;color: #A2A2A2;margin-bottom: 5px;}
        ul { list-style: none; }
        li div {width: 140px;float: left;text-align: right;padding-right: 10px;}
        .c {margin: 5px;border-top: 2px solid #1382CE;margin-bottom: 15px;padding-top: 10px;}
    </style>
}
@section scripts{
        <script src="~/Areas/Pacm/ViewModels/Pacm.Xhjh.js"></script>
        <script type="text/javascript">
            var data = @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model));
            ko.bindingViewModel(new viewModelDetail(data));
        </script>
}
<div class="z-toolbar">
    <a id="a_save" href="#" plain="true" class="easyui-linkbutton" icon="icon-save" data-bind="click:saveClick,linkbuttonDisable:readonly" title="保存">保存</a>
    <a id="a_undo" href="#" plain="true" class="easyui-linkbutton" icon="icon-undo" data-bind="click:rejectClick,linkbuttonDisable:readonly" title="撤消">撤消</a>
    <a id="a_audit" href="#" plain="true" class="easyui-linkbutton" icon="icon-user-accept" data-bind="click:auditClick,easyuiLinkbutton:approveButton" title="审核">审核</a>
    <div class="datagrid-btn-separator"></div>
    <a id="a_first" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_first" data-bind="click:firstClick,linkbuttonEnable:scrollKeys.firstEnable" title="第一条"></a> 
    <a id="a_previous" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_previous" data-bind="click:previousClick,linkbuttonEnable:scrollKeys.previousEnable" title="上一条"></a> 
    <a id="a_next" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_next" data-bind="click:nextClick,linkbuttonEnable:scrollKeys.nextEnable" title="下一条"></a> 
    <a id="a_last" href="#" plain="true" class="easyui-linkbutton" icon="icon-resultset_last" data-bind="click:lastClick,linkbuttonEnable:scrollKeys.lastEnable" title="最后一条"></a> 
</div>
<div id="master" class="container_12" data-bind="inputwidth:0.9" style="padding-top:10px">
    <div class="grid_1 lbl required">单据编号：</div>
    <div class="grid_3 val"><input type="text" data-bind="value:form.Xhjh_BillNo,readOnly:true" class="z-txt" /></div>
    <div class="grid_1 lbl required">计划年度：</div>
    <div class="grid_3 val"><input type="text" data-bind="value:form.Xhjh_Year,readOnly:readonly" class="z-txt" /></div>
    <div class="grid_1 lbl required">计划月份：</div>
    <div class="grid_3 val"><input type="text" data-bind="value:form.Xhjh_Month,readOnly:readonly" class="z-txt" /></div>
    <div class="clear"></div>
    <div class="grid_1 lbl">通电台数：</div>
    <div class="grid_3 val"><input type="text" data-bind="numberboxValue:form.Xhjh_Tdts" class="z-txt easyui-numberbox" data-options="min: 0, precision: 0"/></div>
    <div class="grid_1 lbl">启动台数：</div>
    <div class="grid_3 val"><input type="text" data-bind="numberboxValue:form.Xhjh_Qdts" class="z-txt easyui-numberbox" data-options="min: 0, precision: 0"/></div>
    <div class="grid_1 lbl">槽昼夜数：</div>
    <div class="grid_3 val"><input type="text" data-bind="numberboxValue:form.Xhjh_Czys" class="z-txt easyui-numberbox" data-options="min: 0, precision: 0"/></div>
    <div class="clear"></div>

    <div class="grid_1 lbl">原铝产量：</div>
    <div class="grid_3 val"><input type="text" data-bind="numberboxValue:form.Xhjh_Ylcl" class="z-txt easyui-numberbox" data-options="min: 0, precision: 0"/></div>
    <div class="grid_1 lbl">铝锭原铝：</div>
    <div class="grid_3 val"><input type="text" data-bind="numberboxValue:form.Xhjh_JhLdys" class="z-txt easyui-numberbox" data-options="min: 0, precision: 0"/></div>
    <div class="grid_1 lbl">嘉通原铝：</div>
    <div class="grid_3 val"><input type="text" data-bind="numberboxValue:form.Xhjh_jhJtys" class="z-txt easyui-numberbox" data-options="min: 0, precision: 0"/></div>

    <div class="clear"></div>
   
    <div class="grid_1 lbl">阴极组用量：</div>
    <div class="grid_3 val"><input type="text" data-bind="numberboxValue:form.Xhjh_Yjzyl" class="z-txt easyui-numberbox" data-options="min: 0, precision: 0"/></div>
    <div class="clear"></div>
    <div class="grid_1 lbl">供电量_电解：</div>
    <div class="grid_3 val"><input type="text" data-bind="numberboxValue:form.Xhjh_Djscyd" class="z-txt easyui-numberbox" data-options="min: 0, precision: 0"/></div>
    <div class="grid_1 lbl">供电量_动力：</div>
    <div class="grid_3 val"><input type="text" data-bind="numberboxValue:form.Xhjh_Dlyd" class="z-txt easyui-numberbox" data-options="min: 0, precision: 0"/></div>
    <div class="clear"></div>
  

    <div class="grid_1 lbl">氧化铝_生产使用：</div>
    <div class="grid_3 val"><input type="text" data-bind="numberboxValue:form.Xhjh_Yhl_Scsy" class="z-txt easyui-numberbox" data-options="min: 0, precision: 0"/></div>
    <div class="grid_1 lbl">阳极炭块_生产使用：</div>
    <div class="grid_3 val"><input type="text" data-bind="numberboxValue:form.Xhjh_Yjtk_Scsy" class="z-txt easyui-numberbox" data-options="min: 0, precision: 0"/></div>
    <div class="clear"></div>

    <div class="grid_1 lbl">使用氟化盐_氧化铝：</div>
    <div class="grid_3 val"><input type="text" data-bind="numberboxValue:form.Xhjh_Fhy_Yhl" class="z-txt easyui-numberbox" data-options="min: 0, precision: 0"/></div>
    <div class="grid_1 lbl">使用氟化盐_冰晶石：</div>
    <div class="grid_3 val"><input type="text" data-bind="numberboxValue:form.Xhjh_Fhy_Bjs" class="z-txt easyui-numberbox" data-options="min: 0, precision: 0"/></div>
    <div class="grid_1 lbl">焙烧启动_冰晶石：</div>
    <div class="grid_3 val"><input type="text" data-bind="numberboxValue:form.Xhjh_Psqd_Bjs" class="z-txt easyui-numberbox" data-options="min: 0, precision: 0"/></div>
    <div class="clear"></div>
   
    <div class="grid_1 lbl">新启动槽保温料：</div>
    <div class="grid_3 val"><input type="text" data-bind="numberboxValue:form.Xhjh_Psqd_Bwcl" class="z-txt easyui-numberbox" data-options="min: 0, precision: 0"/></div>
@*    <div class="grid_1 lbl">备注说明：</div>
    <div class="grid_7 val"><input type="text" id="Xhjh_Remark" name="Xhjh_Remark" data-bind="value:form.Xhjh_Remark,readOnly:readonly" class="z-txt" /></div>*@
   
    <div class="grid_1 lbl required">备注说明</div>
    <div class="grid_3 val"><input type="text" data-bind="lookupValue:form.Xhjh_Remark,lookupReadOnly:readonly" class="z-txt easyui-lookup" required="true" data-options="lookupType:'organize',parentField:'pid'"/></div>

   
    <div class="clear"></div>
    <div class="grid_1 lbl">审批状态</div>
    <div class="grid_3 val"><input type="text" id="ApproveState" data-bind="value:form.ApproveState,readOnly:true" class="z-txt readonly"/></div>
    <div class="grid_1 lbl">审批意见</div>
    <div class="grid_3 val"><input type="text" id="ApproveRemark" data-bind="value:form.ApproveRemark,readOnly:true"  class="z-txt readonly"/></div>
    <div class="grid_1 lbl">审批人 </div>
    <div class="grid_3 val"><input type="text" id="ApprovePerson"data-bind="value:form.ApprovePerson,readOnly:true" class="z-txt readonly"/></div>

    <div class="clear"></div>
    <div class="grid_1 lbl">审批日期</div>
    <div class="grid_3 val"><input type="text" id="ApproveDate" data-bind="dateboxValue:form.ApproveDate,dateboxReadOnly:true"  class="z-txt easyui-datebox readonly"/></div>
    <div class="grid_1 lbl">编制日期</div>
    <div class="grid_3 val"><input type="text" id="CreateDate" data-bind="dateboxValue:form.CreateDate,dateboxReadOnly:true" class="z-txt easyui-datebox readonly" /></div>
    <div class="grid_1 lbl">编制人</div>
    <div class="grid_3 val "><input type="text" id="CreatePerson" data-bind="value:form.CreatePerson,readOnly:true" class="z-txt readonly" /></div>
                
    <div class="clear"></div>
    <div class="grid_1 lbl">修改日期</div>
    <div class="grid_3 val"><input type="text" id="UpdateDate" data-bind="dateboxValue:form.UpdateDate,dateboxReadOnly:true" class="z-txt easyui-datebox readonly" /></div>
    <div class="grid_1 lbl">修改人</div>
    <div class="grid_3 val "><input type="text" id="UpdatePerson" data-bind="value:form.UpdatePerson,readOnly:true" class="z-txt readonly" /></div>
      
 
    </div>